package com.xm.starter;

import org.apache.catalina.LifecycleException;
import com.xm.web.server.TomcatServer;

public class MiniApplication {
    public static void run(Class<?> cls, String[] args) {
        System.out.println("Hello mini-spring," + cls.getName());

        TomcatServer tomcatServer = new TomcatServer(args);
        try {
            tomcatServer.startServer();
        } catch (LifecycleException e) {
            e.printStackTrace();
        }
    }
}
